package com.awccis.common.session;

import javax.websocket.Session;

/**
 * @author: 纯牛奶丶
 * @Date: 2018-04-26 20:57
 * @since: 1.0
 * @description:
 **/
public class CustomerSession {

    private int id;
    private String name;
    private String phone;
    private Session session;

    public CustomerSession(){}
    
    public CustomerSession(String phone, Session session) {
        this.phone = phone;
        this.session = session;
    }

    public CustomerSession(int id, String name, String phone) {
        this.id = id;
        this.name = name;
        this.phone = phone;
    }

    public CustomerSession(int id, String name, String phone, Session session) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.session = session;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }

    @Override
    public String toString() {
        return "CustomerSession{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }

    public CustomerSession Cclone() {
        return new CustomerSession(id, name, phone);
    }
}
